<!DOCTYPE html>
<html>
<body>
<div style="width: 1px;"><fieldset style="display: grid;">y<legend></legend>x</fieldset></div>
<div style="width: 1px;"><fieldset style="display: grid; overflow:hidden">y<legend></legend>x</fieldset></div>
<div style="width: 1px;"><fieldset style="display: flex;">y<legend></legend>x</fieldset></div>
<div style="width: 1px;"><fieldset style="display: flex; overflow:hidden">y<legend></legend>x</fieldset></div>
</body>
</html>
